package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="CorrespondBook"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class CorrespondBook implements Serializable {

    /** identifier field */
    private Integer linkmanId;

    /** nullable persistent field */
    private String linkmanName;

    /** persistent field */
    private String sex;

    /** nullable persistent field */
    private String nickName;

    /** nullable persistent field */
    private String duty;

    /** nullable persistent field */
    private String birthday;

    /** nullable persistent field */
    private String corpName;

    /** nullable persistent field */
    private String corpAddress;

    /** nullable persistent field */
    private String corpPostcode;

    /** nullable persistent field */
    private String corpTel;

    /** nullable persistent field */
    private String fax;

    /** nullable persistent field */
    private String familyAddress;

    /** nullable persistent field */
    private String familyPostcode;

    /** nullable persistent field */
    private String familyTel;

    /** nullable persistent field */
    private String mobileTel;

    /** nullable persistent field */
    private String email;

    /** nullable persistent field */
    private String oicq;

    /** nullable persistent field */
    private String msn;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public CorrespondBook(String linkmanName, String sex, String nickName, String duty, String birthday, String corpName, String corpAddress, String corpPostcode, String corpTel, String fax, String familyAddress, String familyPostcode, String familyTel, String mobileTel, String email, String oicq, String msn, String userId, String latestDate, String remark) {
        this.linkmanName = linkmanName;
        this.sex = sex;
        this.nickName = nickName;
        this.duty = duty;
        this.birthday = birthday;
        this.corpName = corpName;
        this.corpAddress = corpAddress;
        this.corpPostcode = corpPostcode;
        this.corpTel = corpTel;
        this.fax = fax;
        this.familyAddress = familyAddress;
        this.familyPostcode = familyPostcode;
        this.familyTel = familyTel;
        this.mobileTel = mobileTel;
        this.email = email;
        this.oicq = oicq;
        this.msn = msn;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public CorrespondBook() {
    }

    /** minimal constructor */
    public CorrespondBook(String sex, String userId) {
        this.sex = sex;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="LinkmanId"
     *             unsaved-value="0"
     *         
     */
    public Integer getLinkmanId() {
        return this.linkmanId;
    }

    public void setLinkmanId(Integer linkmanId) {
        this.linkmanId = linkmanId;
    }

    /** 
     *            @hibernate.property
     *             column="LinkmanName"
     *             length="100"
     *         
     */
    public String getLinkmanName() {
        return this.linkmanName;
    }

    public void setLinkmanName(String linkmanName) {
        this.linkmanName = linkmanName;
    }

    /** 
     *            @hibernate.property
     *             column="Sex"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    /** 
     *            @hibernate.property
     *             column="NickName"
     *             length="20"
     *         
     */
    public String getNickName() {
        return this.nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /** 
     *            @hibernate.property
     *             column="Duty"
     *             length="100"
     *         
     */
    public String getDuty() {
        return this.duty;
    }

    public void setDuty(String duty) {
        this.duty = duty;
    }

    /** 
     *            @hibernate.property
     *             column="Birthday"
     *             length="23"
     *         
     */
    public String getBirthday() {
        return this.birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /** 
     *            @hibernate.property
     *             column="CorpName"
     *             length="100"
     *         
     */
    public String getCorpName() {
        return this.corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    /** 
     *            @hibernate.property
     *             column="CorpAddress"
     *             length="200"
     *         
     */
    public String getCorpAddress() {
        return this.corpAddress;
    }

    public void setCorpAddress(String corpAddress) {
        this.corpAddress = corpAddress;
    }

    /** 
     *            @hibernate.property
     *             column="CorpPostcode"
     *             length="20"
     *         
     */
    public String getCorpPostcode() {
        return this.corpPostcode;
    }

    public void setCorpPostcode(String corpPostcode) {
        this.corpPostcode = corpPostcode;
    }

    /** 
     *            @hibernate.property
     *             column="CorpTel"
     *             length="20"
     *         
     */
    public String getCorpTel() {
        return this.corpTel;
    }

    public void setCorpTel(String corpTel) {
        this.corpTel = corpTel;
    }

    /** 
     *            @hibernate.property
     *             column="Fax"
     *             length="20"
     *         
     */
    public String getFax() {
        return this.fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    /** 
     *            @hibernate.property
     *             column="FamilyAddress"
     *             length="200"
     *         
     */
    public String getFamilyAddress() {
        return this.familyAddress;
    }

    public void setFamilyAddress(String familyAddress) {
        this.familyAddress = familyAddress;
    }

    /** 
     *            @hibernate.property
     *             column="FamilyPostcode"
     *             length="20"
     *         
     */
    public String getFamilyPostcode() {
        return this.familyPostcode;
    }

    public void setFamilyPostcode(String familyPostcode) {
        this.familyPostcode = familyPostcode;
    }

    /** 
     *            @hibernate.property
     *             column="FamilyTel"
     *             length="20"
     *         
     */
    public String getFamilyTel() {
        return this.familyTel;
    }

    public void setFamilyTel(String familyTel) {
        this.familyTel = familyTel;
    }

    /** 
     *            @hibernate.property
     *             column="MobileTel"
     *             length="20"
     *         
     */
    public String getMobileTel() {
        return this.mobileTel;
    }

    public void setMobileTel(String mobileTel) {
        this.mobileTel = mobileTel;
    }

    /** 
     *            @hibernate.property
     *             column="Email"
     *             length="50"
     *         
     */
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /** 
     *            @hibernate.property
     *             column="OICQ"
     *             length="20"
     *         
     */
    public String getOicq() {
        return this.oicq;
    }

    public void setOicq(String oicq) {
        this.oicq = oicq;
    }

    /** 
     *            @hibernate.property
     *             column="MSN"
     *             length="50"
     *         
     */
    public String getMsn() {
        return this.msn;
    }

    public void setMsn(String msn) {
        this.msn = msn;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("linkmanId", getLinkmanId())
            .toString();
    }

}
